package com.graduate.twentyone.service.Impl;


import com.graduate.twentyone.domain.SlideShow;
import com.graduate.twentyone.mapper.SlideShowMapper;
import com.graduate.twentyone.service.SlideShowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SlideShowServiceImpl implements SlideShowService {

    @Autowired
    private SlideShowMapper slideShowMapper;

    @Override
    public List<SlideShow> all() {
        return slideShowMapper.all();
    }

    @Override
    public Integer deleteById(Integer slideshow_id) {
        return slideShowMapper.deleteById(slideshow_id);
    }

    @Override
    public Integer updateById(SlideShow slideshow) {
        return slideShowMapper.updateById(slideshow);
    }

    @Override
    public Integer addOne(SlideShow slideShow) {
        return slideShowMapper.addOne(slideShow);
    }
}
